home *** CD-ROM | disk | FTP | other *** search
/ Canadian Geographic Explorer / Canadian Geographic Explorer.iso / pc / riddler.dxr / 00030_Play Question audio.ls < prev    next >
Encoding:
Text File  |  1996-10-03  |  866 b   |  19 lines

  1. on exitFrame
  2.   global gVoiceChannel, gCurrQString, gPathToSound, fileDelimiter, gOrder, gSoundFXChannel, gValue, gCategory, gCatSprite, gValueSprite
  3.   if not (the puppet of sprite gCatSprite) then
  4.     puppetSprite(gCatSprite, 1)
  5.   end if
  6.   set the memberNum of sprite gCatSprite to the number of member ("cat" & gCategory & " half") of castLib "categories and point values"
  7.   if not (the puppet of sprite gValueSprite) then
  8.     puppetSprite(gValueSprite, 1)
  9.   end if
  10.   set the memberNum of sprite gValueSprite to the number of member ("cat" & gCategory & "-" & gValue & " half") of castLib "categories and point values"
  11.   updateStage()
  12.   sound playFile gVoiceChannel, gPathToSound & "qanda" & fileDelimiter & "q" & gCurrQString & ".aif"
  13.   sound playFile gSoundFXChannel, gPathToSound & "soundFX" & fileDelimiter & "Ticking.aif"
  14. end
  15.  
  16. on keyDown
  17.   BuzzInHandler()
  18. end
  19.